package com.example.task1.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class GarbageHomeBannerBean {
    /**
     * msg : 操作成功
     * code : 200
     * data : [{"id":4,"title":"测试图片","sort":1,"imgUrl":"/dev-api/profile/upload/image/2022/02/24/8d1e9174-7333-44c4-8d17-a64579c2677f.jpg"}]
     */

    @SerializedName("msg")
    private String msg;
    @SerializedName("code")
    private int code;
    @SerializedName("data")
    private List<DataDTO> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * id : 4
         * title : 测试图片
         * sort : 1
         * imgUrl : /dev-api/profile/upload/image/2022/02/24/8d1e9174-7333-44c4-8d17-a64579c2677f.jpg
         */

        @SerializedName("id")
        private int id;
        @SerializedName("title")
        private String title;
        @SerializedName("sort")
        private int sort;
        @SerializedName("imgUrl")
        private String imgUrl;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }
    }
}
